@tool
extends Resource
class_name Attribute

enum ValueType{
	BaseValue,
	CurrentValue
}

## 属性名称
@export var attribute_name:String
## 属性最大值
@export var max_value:float:
	set(value):
		if value < min_value:
			max_value = min_value
		if value < base_value:
			base_value = value
			max_value = value
		else:
			max_value = value

## 属性最小值
@export var min_value:float:
	set(value):
		if value > max_value:
			min_value = max_value
		if value > base_value:
			base_value = value
			min_value = value
		else:
			min_value = value

## 属性基础值
@export var base_value:float:
	set(value):
		if value > max_value:
			base_value = max_value
		if value < min_value:
			base_value = min_value
		if (value<=max_value) and (value>=min_value):
			base_value = value


@export var current_value:float
